import { get, post } from "@/http/api";


export const getUserIsvip = () => get('/user-asset/isvip');

export const getUserToken = (type) => get(`/user-asset/checkassert?type=${type}`);

export const getTokenList = () => get('/user-asset/getusercost?pagesize=10&pagenum=1');

// 用户资产查询
export const getUserAsset = (userid) => get(`/user-asset/tokens/${userid}`);

// 商品列表
export const getProductList = (type) => get(`/product/list?type=${type}`);

// Native下单 ，返回codeUrl支付二维码和orderNo商户订单
export const getPayCode = (params) => post("/wx-pay/native/pay", params);

// 根据订单号查询订单状态(状态: 未支付、支付成功、超时已关闭、用户已取消)
export const getOrderStatus = (orderNo) =>
  get(`/pay-order-info/query-order-status/${orderNo}`);

//查询特定用户的订单
export const getPayList = (userid) => get(`/pay-order-info/userid/${userid}`);
